/**
* 接口配置
*/
var apiInfo = {
<#if entities?? && (entities?size > 0)>
    <#list entities as e>
    "${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}": {
        "list": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}",
            "method": "get",
            "contentType": "",
        },
        "add": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}",
            "method": "post",
            "contentType": "",
        },
        "adds": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}/plist",
            "method": "post",
            "contentType": "",
        },
        "getOne": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}/{id}",
            "method": "get",
            "contentType": "",
        },
        "edit": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}/{id}",
            "method": "put",
            "contentType": "application/json",
        },
        "del": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}/{id}",
            "method": "delete",
            "contentType": "",
        },
        "upField": {
            "modular": "${otherParams.modular_name}",
            "url": "${otherParams.url_prefix}/${e.className?replace("([a-z])([A-Z]+)", "$1-$2", "r")?lower_case}/{id}/{field}/{value}",
            "method": "put",
            "contentType": "",
        }
    },
    </#list>
</#if>
}
